package com.zwps.biz.controller.http;

import com.zwps.biz.api.model.vo.dsmspgpzwl.DsmSpgPzwDateVO;
import com.zwps.biz.api.model.vo.pubsectionall.PubSectionAllVO;
import com.zwps.biz.api.model.vo.pubsectionall.PubSectionAllVOS;
import com.zwps.biz.dal.db.object.PubSectionAllDO;
import com.zwps.biz.domain.service.PubSectionAllService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;
import java.util.Map;

/**
 * @author dzc
 * @date 2024/9/18 19:59
 * @description
 */


@RestController
@Validated
@RequestMapping("safety/section")
public class PubSectionAllController {
    @Autowired
   private PubSectionAllService sectionAllServices;

    @Tag(name = "安全监测")
    @GetMapping("data")
    @Operation(summary = "获取断面信息")
    public List<PubSectionAllVOS> getData(){
        return sectionAllServices.getData();

    }
}
